﻿@model IEnumerable<Senac.Escola.Projeto.Models.Resposta>

@{
    ViewBag.Title = "Index";
}

<h2>@ViewBag.NomePergunta</h2>

<table>
    <tr>
        <th>
            Resposta
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Descricao)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id = item.RespostaID }, new {@class = "btn" }) 
            @Html.ActionLink("Delete", "Delete", new { id=item.RespostaID }, new {@class = "btn" })
        </td>
    </tr>
}
</table>

<p>
    @Html.ActionLink("Create New", "Create", null, new {@class="btn" })
</p>